﻿using System;
using System.Collections.Generic;
using System.Linq;
using Oblivion.Clients;

namespace Oblivion.Substructure
{
    public static class Kernel
    {
        public static string ConfigPath = Environment.CurrentDirectory + "\\config.xml";

        public static List<GameClient> ConnectedClients = new List<GameClient>();

        public static int PlayersOnline
        {
            get { return ConnectedClients.ToArray().Count(client => client.LoggedIn); }
        }
    }
}